import Vue from 'vue'
import App from './App'

import store from './store'
Vue.prototype.$store = store

Vue.config.productionTip = false
Vue.prototype.$baseUrl='http://web.weixinkc.com'

import requestLoading from './pages/common/loading.vue'
import myConfirm from './pages/common/confirm.vue'
Vue.component('request-loading', requestLoading);
Vue.component('my-confirm', myConfirm);

//挂载全局显示/隐藏请求加载动画
function showLoading(){
	store.commit('request_show_loading');
}
function hideLoading(){
	store.commit('request_hide_loading');
}
Vue.prototype.$showLoading = showLoading; 
Vue.prototype.$hideLoading = hideLoading; 


App.mpType = 'app'

const app = new Vue({
    ...App
})
app.$mount()
